package com.fsj.admin.system.service;


import com.fsj.admin.system.domain.ShopDO;
import com.fsj.admin.system.domain.TUserDO;
import com.fsj.admin.system.vo.InviteWaterVO;
import com.fsj.admin.system.vo.TUserInfoVO;
import com.fsj.admin.system.vo.UserChildsVO;

import java.util.List;
import java.util.Map;

/**
 * 用户表
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2019-02-22 16:02:33
 */
public interface TUserService {
	
	TUserDO get(Long id);
	
	List<TUserDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(TUserDO user);
	
	int update(TUserDO user);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

	List<TUserInfoVO> getUserInfo(Map<String, Object> map);

	List<UserChildsVO> getUserChilds(Map<String, Object> map);

	int countUserChilds(Map<String, Object> map);

	List<UserChildsVO> getShopChilds(Map<String, Object> map);

	TUserDO getUserByUserName(String userName);

	List<InviteWaterVO> getInviteWater(Map<String, Object> map);

	int countInviteWater(Map<String, Object> map);

	int countUserInfo(Map<String, Object> map);
}
